#!/usr/bin/env bash
mvn clean package -Dmaven.test.skip=true
rm -rf dockerBuild
mkdir dockerBuild
cp docker/docker-compose.yml dockerBuild/
cp target/demo-0.0.1-SNAPSHOT.jar dockerBuild/ROOT.jar
cp config/application.yml dockerBuild/
cd dockerBuild
docker-compose up -d

#mvn clean compile jib:dockerBuild
#docker rm demo|true
#docker rmi demo:latest|true
#docker run -d --init -p8563:8563 --name demo demo:latest
#docker exec -it demo /bin/sh
#jid=$(jps | grep App | awk '{print $1}')
#java -jar /opt/arthas/arthas-boot.jar --target-ip 0.0.0.0 ${jid}